Insufficient Grouping ^^^^^ **Definition:** * A module or group contains too many elements. Especially for large modules, groups should be used to add logical structure to the module and enhance readability. If a group reaches a critical size, it can be structured further by subgroups. **Code Example:** .. code-block:: module InsufficientGrouping { type record myRecordType1 { // . . . } type record myRecordType2 { // . . . } type record myRecordType3 { // . . . } type record myRecordType4 { // . . . } type record myRecordType5 { // . . . } template myRecordType1 myTemplate1 := { // . . . } template myRecordType1 myTemplate2 := { // . . . } template myRecordType1 myTemplate3 := { // . . . } template myRecordType1 myTemplate4 := { // . . . } template myRecordType1 myTemplate5 := { // . . . } function f1( ) { // . . . } // more declarations here } **References:** .. admonition:: Quality attributes * :octicon:`file-code;1em` - Code Example * :octicon:`comment-discussion;1em` - Cause and Effect * :octicon:`graph;1em` - Frequency * :octicon:`sync;1em` - Refactoring * `An approach to quality engineering of TTCN-3 test specifications `_ * `Pattern-based Smell Detection in TTCN-3 Test Suites `_ :octicon:`file-code;1em` :octicon:`comment-discussion;1em` :octicon:`sync;1em` * `Utilising Code Smells to Detect Quality Problems in TTCN-3 Test Suites `_